﻿namespace Liger.Web.UI
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class GridEditingSettings
    {

        public bool Enabled
        {
            get
            {
                return EnabledEdit.HasValue && EnabledEdit.Value;
            }
            set
            {
                EnabledEdit = value;
            }
        }

        /// <summary>
        /// 是否允许编辑
        /// </summary>
        public bool? EnabledEdit
        {
            get;
            set;
        }
        /// <summary>
        /// 是否双击的时候才编辑
        /// </summary>
        public bool? DblClickToEdit
        {
            get;
            set;
        }
    }
}
